<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>创建一个链接指向一个低分辨率的image</title>
</head>

<body>
    <img id="compman" src="compman.gif" lowsrc="compman_lowres.gif" alt="Computerman" width="107" height="98">
    <br>
    <script>
        var x = document.getElementById("compman");
        document.write('<a href="' + x.lowsrc + '">低分辨率</a>');
    </script>
</body>

</html>